import service from "@/utils/request"



export interface PackingMaterialsOutOfStorageInterface{
    deptName:string,
    lotNo:string,
    mtlName:string,
    mtlNo:string,
    outStorageEndDate:string,
    outStorageStartDate:string,
    pageNum:number,
    pageSize:number,
    slipNo:string,
    slipReason:string
}

export interface PackingMaterialsOutOf{
    slipNo: string,
    slipDate: string,
    slipReason: string,
    deptName: string,
    mtlNo: string,
    lotNo: string,
    mtlColor: null,
    mtlName: string,
    mtlSpec: string,
    mtlUnit: string,
    qty: number,
    price: number,
    amt: number,
    chiName: string
}

export interface PackingMaterialsOutOfS{
    total: number,
    qtySum: number,
    list:PackingMaterialsOutOf[]
}

export const PackingMaterialsOutOfStorage = (parms:PackingMaterialsOutOfStorageInterface) => {
    return service.post<any,PackingMaterialsOutOfS>('/pack/getPackMaterialOut',parms)
}


export const FindDate = () => {
    return service.get<any,any>('/pack/getPcPackMaterialOutCondition')
}